import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/students',
    method: 'get',
    params
  })
}

export function create(data) {
  return request({
    url: '/students',
    method: 'post',
    data
  })
}

export function show(id) {
  return request({
    url: '/students/' + id,
    method: 'get'
  })
}

export function update(data, id) {
  return request({
    url: '/students/' + id,
    method: 'put',
    data
  })
}

